
/* First created by JCasGen Thu Jan 30 20:03:35 CET 2014 */
package com.unidue.foguing.types;

import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.impl.FeatureImpl;
import org.apache.uima.cas.Feature;
import org.apache.uima.jcas.tcas.Annotation_Type;

/** 
 * Updated by JCasGen Thu Jan 30 20:49:18 CET 2014
 * @generated */
public class ActualSentiment_Type extends Annotation_Type {
  /** @generated */
  @Override
  protected FSGenerator getFSGenerator() {return fsGenerator;}
  /** @generated */
  private final FSGenerator fsGenerator = 
    new FSGenerator() {
      public FeatureStructure createFS(int addr, CASImpl cas) {
  			 if (ActualSentiment_Type.this.useExistingInstance) {
  			   // Return eq fs instance if already created
  		     FeatureStructure fs = ActualSentiment_Type.this.jcas.getJfsFromCaddr(addr);
  		     if (null == fs) {
  		       fs = new ActualSentiment(addr, ActualSentiment_Type.this);
  			   ActualSentiment_Type.this.jcas.putJfsFromCaddr(addr, fs);
  			   return fs;
  		     }
  		     return fs;
        } else return new ActualSentiment(addr, ActualSentiment_Type.this);
  	  }
    };
  /** @generated */
  @SuppressWarnings ("hiding")
  public final static int typeIndexID = ActualSentiment.typeIndexID;
  /** @generated 
     @modifiable */
  @SuppressWarnings ("hiding")
  public final static boolean featOkTst = JCasRegistry.getFeatOkTst("com.unidue.foguing.types.ActualSentiment");
 
  /** @generated */
  final Feature casFeat_subTweet;
  /** @generated */
  final int     casFeatCode_subTweet;
  /** @generated */ 
  public String getSubTweet(int addr) {
        if (featOkTst && casFeat_subTweet == null)
      jcas.throwFeatMissing("subTweet", "com.unidue.foguing.types.ActualSentiment");
    return ll_cas.ll_getStringValue(addr, casFeatCode_subTweet);
  }
  /** @generated */    
  public void setSubTweet(int addr, String v) {
        if (featOkTst && casFeat_subTweet == null)
      jcas.throwFeatMissing("subTweet", "com.unidue.foguing.types.ActualSentiment");
    ll_cas.ll_setStringValue(addr, casFeatCode_subTweet, v);}
    
  
 
  /** @generated */
  final Feature casFeat_startWordPosition;
  /** @generated */
  final int     casFeatCode_startWordPosition;
  /** @generated */ 
  public int getStartWordPosition(int addr) {
        if (featOkTst && casFeat_startWordPosition == null)
      jcas.throwFeatMissing("startWordPosition", "com.unidue.foguing.types.ActualSentiment");
    return ll_cas.ll_getIntValue(addr, casFeatCode_startWordPosition);
  }
  /** @generated */    
  public void setStartWordPosition(int addr, int v) {
        if (featOkTst && casFeat_startWordPosition == null)
      jcas.throwFeatMissing("startWordPosition", "com.unidue.foguing.types.ActualSentiment");
    ll_cas.ll_setIntValue(addr, casFeatCode_startWordPosition, v);}
    
  
 
  /** @generated */
  final Feature casFeat_endWordPosition;
  /** @generated */
  final int     casFeatCode_endWordPosition;
  /** @generated */ 
  public int getEndWordPosition(int addr) {
        if (featOkTst && casFeat_endWordPosition == null)
      jcas.throwFeatMissing("endWordPosition", "com.unidue.foguing.types.ActualSentiment");
    return ll_cas.ll_getIntValue(addr, casFeatCode_endWordPosition);
  }
  /** @generated */    
  public void setEndWordPosition(int addr, int v) {
        if (featOkTst && casFeat_endWordPosition == null)
      jcas.throwFeatMissing("endWordPosition", "com.unidue.foguing.types.ActualSentiment");
    ll_cas.ll_setIntValue(addr, casFeatCode_endWordPosition, v);}
    
  
 
  /** @generated */
  final Feature casFeat_SID;
  /** @generated */
  final int     casFeatCode_SID;
  /** @generated */ 
  public long getSID(int addr) {
        if (featOkTst && casFeat_SID == null)
      jcas.throwFeatMissing("SID", "com.unidue.foguing.types.ActualSentiment");
    return ll_cas.ll_getLongValue(addr, casFeatCode_SID);
  }
  /** @generated */    
  public void setSID(int addr, long v) {
        if (featOkTst && casFeat_SID == null)
      jcas.throwFeatMissing("SID", "com.unidue.foguing.types.ActualSentiment");
    ll_cas.ll_setLongValue(addr, casFeatCode_SID, v);}
    
  
 
  /** @generated */
  final Feature casFeat_UID;
  /** @generated */
  final int     casFeatCode_UID;
  /** @generated */ 
  public long getUID(int addr) {
        if (featOkTst && casFeat_UID == null)
      jcas.throwFeatMissing("UID", "com.unidue.foguing.types.ActualSentiment");
    return ll_cas.ll_getLongValue(addr, casFeatCode_UID);
  }
  /** @generated */    
  public void setUID(int addr, long v) {
        if (featOkTst && casFeat_UID == null)
      jcas.throwFeatMissing("UID", "com.unidue.foguing.types.ActualSentiment");
    ll_cas.ll_setLongValue(addr, casFeatCode_UID, v);}
    
  
 
  /** @generated */
  final Feature casFeat_actualSentiment;
  /** @generated */
  final int     casFeatCode_actualSentiment;
  /** @generated */ 
  public String getActualSentiment(int addr) {
        if (featOkTst && casFeat_actualSentiment == null)
      jcas.throwFeatMissing("actualSentiment", "com.unidue.foguing.types.ActualSentiment");
    return ll_cas.ll_getStringValue(addr, casFeatCode_actualSentiment);
  }
  /** @generated */    
  public void setActualSentiment(int addr, String v) {
        if (featOkTst && casFeat_actualSentiment == null)
      jcas.throwFeatMissing("actualSentiment", "com.unidue.foguing.types.ActualSentiment");
    ll_cas.ll_setStringValue(addr, casFeatCode_actualSentiment, v);}
    
  
 
  /** @generated */
  final Feature casFeat_numberOfParts;
  /** @generated */
  final int     casFeatCode_numberOfParts;
  /** @generated */ 
  public int getNumberOfParts(int addr) {
        if (featOkTst && casFeat_numberOfParts == null)
      jcas.throwFeatMissing("numberOfParts", "com.unidue.foguing.types.ActualSentiment");
    return ll_cas.ll_getIntValue(addr, casFeatCode_numberOfParts);
  }
  /** @generated */    
  public void setNumberOfParts(int addr, int v) {
        if (featOkTst && casFeat_numberOfParts == null)
      jcas.throwFeatMissing("numberOfParts", "com.unidue.foguing.types.ActualSentiment");
    ll_cas.ll_setIntValue(addr, casFeatCode_numberOfParts, v);}
    
  



  /** initialize variables to correspond with Cas Type and Features
	* @generated */
  public ActualSentiment_Type(JCas jcas, Type casType) {
    super(jcas, casType);
    casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
    casFeat_subTweet = jcas.getRequiredFeatureDE(casType, "subTweet", "uima.cas.String", featOkTst);
    casFeatCode_subTweet  = (null == casFeat_subTweet) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_subTweet).getCode();

 
    casFeat_startWordPosition = jcas.getRequiredFeatureDE(casType, "startWordPosition", "uima.cas.Integer", featOkTst);
    casFeatCode_startWordPosition  = (null == casFeat_startWordPosition) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_startWordPosition).getCode();

 
    casFeat_endWordPosition = jcas.getRequiredFeatureDE(casType, "endWordPosition", "uima.cas.Integer", featOkTst);
    casFeatCode_endWordPosition  = (null == casFeat_endWordPosition) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_endWordPosition).getCode();

 
    casFeat_SID = jcas.getRequiredFeatureDE(casType, "SID", "uima.cas.Long", featOkTst);
    casFeatCode_SID  = (null == casFeat_SID) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_SID).getCode();

 
    casFeat_UID = jcas.getRequiredFeatureDE(casType, "UID", "uima.cas.Long", featOkTst);
    casFeatCode_UID  = (null == casFeat_UID) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_UID).getCode();

 
    casFeat_actualSentiment = jcas.getRequiredFeatureDE(casType, "actualSentiment", "uima.cas.String", featOkTst);
    casFeatCode_actualSentiment  = (null == casFeat_actualSentiment) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_actualSentiment).getCode();

 
    casFeat_numberOfParts = jcas.getRequiredFeatureDE(casType, "numberOfParts", "uima.cas.Integer", featOkTst);
    casFeatCode_numberOfParts  = (null == casFeat_numberOfParts) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_numberOfParts).getCode();

  }
}



    